<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Logagent: src/logagent-element.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Logagent
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">logagent-element.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="logagent-element_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2018 Steven Lee &lt;geekerlw@gmail.com&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a copy</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * of this software and associated documentation files (the &quot;Software&quot;), to deal</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * in the Software without restriction, including without limitation the rights</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * copies of the Software, and to permit persons to whom the Software is</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in all</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * copies or substantial portions of the Software.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#ifndef __LOGAGENT_ELEMENT_H__</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#define __LOGAGENT_ELEMENT_H__</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="logagent-element_8h.html#aae274f41092a97b769cece1f3b400e0c">   19</a></span>&#160;<span class="preprocessor">#define ELEMENT_JSON_SIZE       1024</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="structelement__t.html">   21</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div><div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="structelement__t.html#ab111c373a9cb61d91c54266c1ac9ef56">   22</a></span>&#160;    <span class="keywordtype">char</span> json[<a class="code" href="logagent-element_8h.html#aae274f41092a97b769cece1f3b400e0c">ELEMENT_JSON_SIZE</a>];   </div><div class="line"><a name="l00023"></a><span class="lineno"><a class="line" href="structelement__t.html#a3b00bb35a8ec1f7c00baea3092f4643b">   23</a></span>&#160;    <span class="keywordtype">void</span> *<a class="code" href="structelement__t.html#a3b00bb35a8ec1f7c00baea3092f4643b">config</a>;   </div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="structelement__t.html#a36f7dc7ef661b2947f269b22331bad4f">   25</a></span>&#160;    <span class="keywordtype">void</span> **<a class="code" href="structelement__t.html#a36f7dc7ef661b2947f269b22331bad4f">context</a>; </div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="structelement__t.html#af67b5ff57cebf3233b93f69c041ee467">   27</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structlist__head.html">list_head</a> *<a class="code" href="structelement__t.html#af67b5ff57cebf3233b93f69c041ee467">pos</a>;  </div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="structelement__t.html#a1f00f18b91d5a820f2c43064243aa86e">   29</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structlist__head.html">list_head</a> list; </div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;} <a class="code" href="structelement__t.html">element_t</a>;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="keywordtype">void</span> <a class="code" href="logagent-element_8h.html#a66f5d60bb926223dfb2a7ff21781c5a2">logagent_element_work_all</a>(<span class="keyword">struct</span> <a class="code" href="structlist__head.html">list_head</a> *element_list);</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keywordtype">void</span> <a class="code" href="logagent-element_8h.html#a70d2b8df52f50ba62b754d924c388339">logagent_element_init_all</a>(<span class="keyword">struct</span> <a class="code" href="structlist__head.html">list_head</a> *element_list);</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="keywordtype">void</span> <a class="code" href="logagent-element_8h.html#a0a6c8fab3913b8b515572b891c131cc3">logagent_element_exit_all</a>(<span class="keyword">struct</span> <a class="code" href="structlist__head.html">list_head</a> *element_list);</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="keywordtype">void</span> <a class="code" href="logagent-element_8h.html#a3a696fd0b76fe69520da20264cb65f2a">logagent_element_config_load</a>(<span class="keyword">struct</span> <a class="code" href="structlist__head.html">list_head</a> *plugin_list,</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;                  <span class="keyword">struct</span> <a class="code" href="structlist__head.html">list_head</a> *element_list,</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;                  <span class="keyword">const</span> <span class="keywordtype">char</span> *json);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="keywordtype">void</span> <a class="code" href="logagent-element_8h.html#a2546317835801dc86064db00a160e342">logagent_element_config_unload</a>(<span class="keyword">struct</span> <a class="code" href="structlist__head.html">list_head</a> *element_list);</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="logagent-element_8h_html_a2546317835801dc86064db00a160e342"><div class="ttname"><a href="logagent-element_8h.html#a2546317835801dc86064db00a160e342">logagent_element_config_unload</a></div><div class="ttdeci">void logagent_element_config_unload(struct list_head *element_list)</div></div>
<div class="ttc" id="structelement__t_html_a36f7dc7ef661b2947f269b22331bad4f"><div class="ttname"><a href="structelement__t.html#a36f7dc7ef661b2947f269b22331bad4f">element_t::context</a></div><div class="ttdeci">void ** context</div><div class="ttdef"><b>Definition:</b> logagent-element.h:25</div></div>
<div class="ttc" id="logagent-element_8h_html_a0a6c8fab3913b8b515572b891c131cc3"><div class="ttname"><a href="logagent-element_8h.html#a0a6c8fab3913b8b515572b891c131cc3">logagent_element_exit_all</a></div><div class="ttdeci">void logagent_element_exit_all(struct list_head *element_list)</div></div>
<div class="ttc" id="logagent-element_8h_html_a3a696fd0b76fe69520da20264cb65f2a"><div class="ttname"><a href="logagent-element_8h.html#a3a696fd0b76fe69520da20264cb65f2a">logagent_element_config_load</a></div><div class="ttdeci">void logagent_element_config_load(struct list_head *plugin_list, struct list_head *element_list, const char *json)</div></div>
<div class="ttc" id="structelement__t_html"><div class="ttname"><a href="structelement__t.html">element_t</a></div><div class="ttdef"><b>Definition:</b> logagent-element.h:21</div></div>
<div class="ttc" id="structlist__head_html"><div class="ttname"><a href="structlist__head.html">list_head</a></div><div class="ttdef"><b>Definition:</b> logagent-list.h:26</div></div>
<div class="ttc" id="logagent-element_8h_html_a66f5d60bb926223dfb2a7ff21781c5a2"><div class="ttname"><a href="logagent-element_8h.html#a66f5d60bb926223dfb2a7ff21781c5a2">logagent_element_work_all</a></div><div class="ttdeci">void logagent_element_work_all(struct list_head *element_list)</div></div>
<div class="ttc" id="structelement__t_html_af67b5ff57cebf3233b93f69c041ee467"><div class="ttname"><a href="structelement__t.html#af67b5ff57cebf3233b93f69c041ee467">element_t::pos</a></div><div class="ttdeci">struct list_head * pos</div><div class="ttdef"><b>Definition:</b> logagent-element.h:27</div></div>
<div class="ttc" id="structelement__t_html_a3b00bb35a8ec1f7c00baea3092f4643b"><div class="ttname"><a href="structelement__t.html#a3b00bb35a8ec1f7c00baea3092f4643b">element_t::config</a></div><div class="ttdeci">void * config</div><div class="ttdef"><b>Definition:</b> logagent-element.h:23</div></div>
<div class="ttc" id="logagent-element_8h_html_aae274f41092a97b769cece1f3b400e0c"><div class="ttname"><a href="logagent-element_8h.html#aae274f41092a97b769cece1f3b400e0c">ELEMENT_JSON_SIZE</a></div><div class="ttdeci">#define ELEMENT_JSON_SIZE</div><div class="ttdef"><b>Definition:</b> logagent-element.h:19</div></div>
<div class="ttc" id="logagent-element_8h_html_a70d2b8df52f50ba62b754d924c388339"><div class="ttname"><a href="logagent-element_8h.html#a70d2b8df52f50ba62b754d924c388339">logagent_element_init_all</a></div><div class="ttdeci">void logagent_element_init_all(struct list_head *element_list)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
